#include "clearClueCardMessage.h"

ClearClueCardMessage::ClearClueCardMessage(MtpProtocol* packet) : MtpMessage(packet),param(0,0,0,L"")
{

}

ClearClueCardMessage::ClearClueCardMessage(const int64_t& movieId, const int64_t& clueCardId, const int& channel,const String& clueCardType) 
	: MtpMessage(new MtpProtocol(L"clearClueCard")),param(movieId,clueCardId,channel,clueCardType)
{

}

void ClearClueCardMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.fromJson(jsonContent);
}

void ClearClueCardMessage::encodeBody()
{
	jsonContent = param.toJson();
	MtpMessage::encodeBody();
}

const ClearClueCardParam& ClearClueCardMessage::getParam() const
{
	return param;
}
